load("@fbcode_macros//build_defs:cpp_unittest.bzl", "cpp_unittest")

oncall("scm_client_infra")

cpp_unittest(
    name = "fake_backing_store_test",
    srcs = ["FakeBackingStoreTest.cpp"],
    supports_static_listing = False,
    deps = [
        "fbsource//third-party/googletest:gtest",
        "//eden/common/utils:path",
        "//eden/fs/model:testutil",
        "//eden/fs/testharness:fake_backing_store_and_tree_builder",
        "//eden/fs/testharness:test_util",
        "//folly/executors:manual_executor",
        "//folly/io:iobuf",
        "//folly/test:test_utils",
        "//folly/testing:test_util",
    ],
)

cpp_unittest(
    name = "fake_object_store_test",
    srcs = ["FakeObjectStoreTest.cpp"],
    supports_static_listing = False,
    deps = [
        "fbsource//third-party/googletest:gtest",
        "//eden/common/utils:immediate_future",
        "//eden/fs/model:model",
        "//eden/fs/model:testutil",
        "//eden/fs/testharness:fake_object_store",
        "//folly/futures:core",
        "//folly/io:iobuf",
    ],
)

cpp_unittest(
    name = "test_mount_test",
    srcs = ["TestMountTest.cpp"],
    supports_static_listing = False,
    deps = [
        "fbsource//third-party/googletest:gtest",
        "//eden/fs/inodes:inodes",
        "//eden/fs/model:testutil",
        "//eden/fs/testharness:fake_backing_store_and_tree_builder",
        "//eden/fs/testharness:test_mount",
        "//folly:range",
    ],
)

cpp_unittest(
    name = "test_server_test",
    srcs = ["TestServerTest.cpp"],
    supports_static_listing = False,
    deps = [
        "fbsource//third-party/googletest:gtest",
        "//eden/fs/service:server",
        "//eden/fs/testharness:test_server",
        "//folly/io/async:async_base",
        "//thrift/lib/cpp2:server",
    ],
)

cpp_unittest(
    name = "test_util_test",
    srcs = ["TestUtilTest.cpp"],
    supports_static_listing = False,
    deps = [
        "fbsource//third-party/googletest:gtest",
        "//eden/fs/model:model",
        "//eden/fs/model:testutil",
        "//eden/fs/testharness:test_util",
        "//folly/test:test_utils",
    ],
)
